﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InformationSystem.BLL.Core.Model;

namespace InformationSystem.BLL.Core.Service
{
    public interface IForumService
    {
        College GetCollegeForumInfo(int collegeID, LoginUser user);
        IList<ThreadInfo> GetThreads(int collegeid, int threadtype, int pagesize, int requestpage, out int totalrecordcount);
        bool CreateThread(ThreadInfo tinfo, LoginUser user);
        bool DeleteThread(int threadid, LoginUser user, out  int forumid);
        bool DeleteReply(int replyid, LoginUser user);
        bool HiLightThread(int replyid, bool hilight, LoginUser user);
        bool CreateReply(int threadid, ThreadReplyInfo rinfo, LoginUser user);
        ThreadInfo GetThreadDetail(int threadid, LoginUser user);
        ThreadReplyInfo GetThreadReplyDetail(int replyid);
        IList<ThreadReplyInfo> GetThreadReplyInfo(int threadid, int pagesize, int requestpage, out int totalrecordcount);
        int GetThreadReplysCount(int threadid);
        bool UpdateReadCount(int threadid);
        //bool UpdateReplyCount(int threadid);
    }
}
